<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new sfTestFunctional(new sfBrowser());

$browser->
  info('1 - Authentication')->
  get('/invitation/index')->
  click('#lnk_login', array(
    'signin' => array('username' => 'admin', 'password' => 'admin'),
    array('_with_csrf' => true)
  ))->
  info('2 - envio de email')->
  with('mailer')->begin()->
    checkHeader('Subject', '/asunto envia correo/')->
    checkBody('/cuerpo del correo/')->
  end()
;
